package com.tcoiss.datafactory.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.tcoiss.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;


/**
 * 销售计划类别配置对象 kd_sale_plan_category
 *
 * @author zw
 * @date 2021-06-19
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("kd_sale_plan_category")
public class KdSalePlanCategory implements Serializable {

    private static final long serialVersionUID=1L;


    /** ID */
    @TableId(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 商品分类编码 */
    @Excel(name = "商品分类编码")
    private String goodsClassNo;

    /** 商品分类名称 */
    @Excel(name = "商品分类名称")
    private String goodsClassName;

    /** 类别编码 */
    @Excel(name = "类别编码")
    private String classNo;

    /** 类别名称 */
    @Excel(name = "类别名称")
    private String className;

    /** 类别编码 */
    @Excel(name = "财务类别编码")
    private String financeClassNo;

    /** 类别名称 */
    @Excel(name = "财务类别名称")
    private String financeClassName;

    /** 创建时间 */
    @Excel(name = "修改时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 修改时间 */
    @Excel(name = "修改时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;

    /** 使用状态 */
    @Excel(name = "使用状态")
    private String enable;

    /** 数据状态 */
    @Excel(name = "数据状态")
    private String status;

//    /** 品类ID */
//    @Excel(name = "品类ID")
//    private Long varietyId;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
